package com.liumuxian.video.pojo;

import lombok.Data;
import org.hibernate.annotations.Proxy;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

@Data
@Entity
@Table(name="tb_video")
@Proxy(lazy = false)
public class Video implements Serializable{
    @Id
    @Column(name="id",length = 20)
    private String id;
    @Column(name="url",length = 255)
    private String url;
    @Column(name="type",length = 1)
    private Integer type;//0免费1付费2以付费
    @Column(name = "price")
    private Double price;//价格
    @Column(name="state",length = 1)
    private Integer state;
    @Column(name="creatdata")
    private Date creatdata;
    @Column(name="updatedate")
    private Date updatedate;
    @Column(name="count")
    private Double count;//播放量
}
